/* ════════════════════════════════════════════════════════════════════
   CYBER SAMACHAR — COMING SOON  ·  stylesheet
   Extracted from "Coming Soon.html". Linked via <link rel="stylesheet" href="Coming Soon.css">.
   Note: the matrix-rain background is injected separately by matrix-rain.js.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 14px;
  --tr: 0.25s cubic-bezier(0.4,0,0.2,1);
}
[data-theme="dark"] {
  --bg: #060a10;
  --bg2: #0a0f18;
  --bg-card: rgba(15,21,32,0.66);
  --bg-input: rgba(255,255,255,0.04);
  --text: #f0f4fa;
  --text2: rgba(240,244,250,0.62);
  --text3: rgba(240,244,250,0.34);
  --border: rgba(255,255,255,0.08);
  --accent: #00ff41;
  --accent-dim: #00cc33;
  --accent-bg: rgba(0,255,65,0.06);
  --accent-glow: rgba(0,255,65,0.35);
  --red: #ff2d4a;
  --orange: #ff7a1a;
  --orange-dim: #ff6300;
  --orange-bg: rgba(255,122,26,0.10);
  --orange-glow: rgba(255,122,26,0.42);
  --shadow: 0 18px 60px rgba(0,0,0,0.55), 0 0 30px rgba(255,122,26,0.05);
  --logo-full: url('logo.png');
  --logo-mark: url('logo-mark.png');
}
[data-theme="light"] {
  --bg: #f4f6f9;
  --bg2: #ffffff;
  --bg-card: rgba(255,255,255,0.78);
  --bg-input: rgba(10,20,40,0.04);
  --text: #0a1628;
  --text2: rgba(10,22,40,0.72);
  --text3: rgba(10,22,40,0.46);
  --border: rgba(10,22,40,0.10);
  --accent: #009150;
  --accent-dim: #006e3b;
  --accent-bg: rgba(0,145,80,0.08);
  --accent-glow: rgba(0,145,80,0.30);
  --red: #dc2538;
  --orange: #e8590c;
  --orange-dim: #c2410c;
  --orange-bg: rgba(232,89,12,0.09);
  --orange-glow: rgba(232,89,12,0.28);
  --shadow: 0 18px 50px rgba(10,22,40,0.14), 0 0 24px rgba(232,89,12,0.07);
  --logo-full: url('logo-dark.png');
  --logo-mark: url('logo-mark-dark.png');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  transition: background var(--tr), color var(--tr);
}

/* ── ambient glow wash above the matrix ── */
.bg-wash { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-wash::before, .bg-wash::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px);
}
.bg-wash::before {
  width: 44vw; height: 44vw; top: -16vw; right: -10vw;
  background: radial-gradient(circle, var(--orange-glow), transparent 68%); opacity: 0.5;
}
.bg-wash::after {
  width: 38vw; height: 38vw; bottom: -16vw; left: -8vw;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%); opacity: 0.16;
}
[data-theme="light"] .bg-wash::before { opacity: 0.24; }
[data-theme="light"] .bg-wash::after { opacity: 0.1; }

.scanlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,255,65,0.012) 3px, transparent 4px);
}
[data-theme="light"] .scanlines { display: none; }

/* ── TOP BAR ── */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 22px clamp(18px, 5vw, 54px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; cursor: default; }
.brand-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--logo-mark) center/contain no-repeat;
  filter: drop-shadow(0 0 9px var(--accent-glow));
}
.brand-wm { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.5px; line-height: 1; }
.brand-wm .accent { color: var(--accent); }

.top-right { display: flex; align-items: center; gap: 14px; }
.nav-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text2);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 8px var(--orange); animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ── MAIN STAGE ── */
.stage {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px clamp(18px, 5vw, 54px) 40px;
}
.stage-inner { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; }

.hero-logo {
  width: clamp(220px, 34vw, 360px); aspect-ratio: 1;
  background: var(--logo-full) center/contain no-repeat;
  margin-bottom: -44px;
  position: relative;
  filter: drop-shadow(0 0 26px var(--accent-glow));
  transform-origin: center 60%;
  animation: logo-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both, floaty 6s ease-in-out 0.9s infinite;
  /* acts as the dark/light theme toggle */
  border: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background-color: transparent;
}
.hero-logo:hover { filter: drop-shadow(0 0 38px var(--accent-glow)) brightness(1.06); }
.hero-logo:active { transform: scale(0.96); }
.hero-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; border-radius: 16px; }
.hero-logo.theme-flip { animation: logo-flip 0.5s cubic-bezier(0.34, 1.4, 0.5, 1); }
@keyframes logo-flip {
  0% { transform: rotateY(0) scale(1); }
  50% { transform: rotateY(90deg) scale(0.9); }
  100% { transform: rotateY(0) scale(1); }
}
.hero-logo::before {
  content: ''; position: absolute; z-index: -1;
  inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), rgba(255,255,255,0.05) 45%, transparent 70%);
  filter: blur(26px);
}
[data-theme="light"] .hero-logo::before {
  background: radial-gradient(circle, rgba(255,255,255,0.5), rgba(255,255,255,0.12) 45%, transparent 70%);
}
@keyframes logo-pop {
  0% { transform: scale(0); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--orange);
  padding: 7px 15px; border: 1px solid var(--orange); border-radius: 100px;
  background: var(--orange-bg); margin-bottom: 22px;
}

.headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6.6vw, 68px); line-height: 1.02; letter-spacing: -0.5px;
  text-wrap: balance; margin-bottom: 18px;
}
.headline .accent { color: #ffa14d; }
[data-theme="light"] .headline .accent { color: #f59042; }

/* ── DATA-CORRUPTION GLITCH ── (original; runs on the real headline so it
   never misaligns. Clean most of the time, then corrupts in short bursts
   with a brand green/red chromatic split + jolt + a sliced band.) */
.headline { position: relative; }
.headline .glitch-band {
  display: block; position: absolute; left: 0; width: 100%;
  pointer-events: none; opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .headline { animation: cs-glitch 6.5s infinite steps(1); }
}
@keyframes cs-glitch {
  /* long calm stretches… */
  0%, 7%, 11%, 50%, 54%, 100% {
    transform: translate(0);
    text-shadow: none;
  }
  /* …burst one */
  8%  { transform: translate(-3px, 1px); text-shadow: -3px 0 #00ff41, 3px 0 #ff2d4a; }
  9%  { transform: translate(3px, -1px); text-shadow: 3px 0 #00ff41, -3px 0 #ff2d4a; }
  10% { transform: translate(-1px, 0);   text-shadow: -2px 0 #00ff41, 2px 0 #ff2d4a; }
  /* …burst two (shorter) */
  51% { transform: translate(2px, 0);    text-shadow: 2px 0 #ff2d4a, -2px 0 #00ff41; }
  52% { transform: translate(-2px, 1px); text-shadow: -3px 0 #ff2d4a, 3px 0 #00ff41; }
  53% { transform: translate(1px, 0);    text-shadow: 1px 0 #ff2d4a, -1px 0 #00ff41; }
}
.lede {
  font-size: clamp(15px, 1.8vw, 18px); line-height: 1.65; color: var(--text2);
  max-width: 540px; text-wrap: pretty; margin-bottom: 38px;
}

/* ── NOTIFY FORM ── */
.notify { width: 100%; max-width: 460px; }
.notify-row {
  display: flex; gap: 10px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 7px 7px 16px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); transition: var(--tr);
}
.notify-row:focus-within { border-color: var(--orange); box-shadow: var(--shadow), 0 0 0 3px var(--orange-bg); }
.notify-row input {
  flex: 1; border: none; outline: none; background: transparent; color: var(--text);
  font-family: var(--font-body); font-size: 15px; min-width: 0;
}
.notify-row input::placeholder { color: var(--text3); }
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.4px;
  border: none; border-radius: 9px; padding: 0 20px; height: 44px; cursor: pointer;
  background: linear-gradient(135deg, #ff8c00, #ff6a00); color: #fff; white-space: nowrap;
  transition: var(--tr); display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 9px 26px rgba(255,140,0,.5); }
.btn svg { width: 16px; height: 16px; }
.notify-hint { font-family: var(--font-mono); font-size: 11.5px; color: var(--text3); margin-top: 12px; letter-spacing: 0.3px; }
.notify-ok {
  display: none; align-items: center; gap: 11px; justify-content: center;
  background: var(--orange-bg); border: 1px solid var(--orange); border-radius: var(--radius);
  padding: 16px 20px; color: var(--text); font-size: 14.5px; line-height: 1.4;
}
.notify-ok.show { display: flex; }
.notify.done .notify-row, .notify.done .notify-hint { display: none; }
.notify-ok svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; }

/* ── FOOTER ── */
.footer {
  position: relative; z-index: 1; border-top: 1px solid var(--border);
  padding: 22px clamp(18px, 5vw, 54px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.footer-left { font-family: var(--font-mono); font-size: 11.5px; color: var(--text3); letter-spacing: 0.3px; }
.socials { display: flex; gap: 9px; }
.social {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text2);
  transition: var(--tr); backdrop-filter: blur(8px);
}
.social:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

@media (max-width: 560px) {
  .hero-logo { margin-bottom: -16px; }
  .nav-live { display: none; }
  .notify-row { flex-direction: column; padding: 12px; gap: 12px; }
  .notify-row input { text-align: center; padding: 4px 0; }
  .btn { width: 100%; justify-content: center; height: 46px; }
  .footer { flex-direction: column; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .live-dot, .headline { animation: none; }
}

/* ════════ TWEAKS PANEL ════════ */
.tweaks-panel {
  display: none; position: fixed; bottom: 22px; right: 22px; z-index: 601;
  width: 268px; max-height: calc(100vh - 44px); overflow-y: auto;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-bg);
}
.tweaks-panel.open { display: block; animation: tw-in 0.22s cubic-bezier(0.34,1.3,0.64,1); }
@keyframes tw-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
.tweaks-panel::-webkit-scrollbar { width: 4px; }
.tweaks-panel::-webkit-scrollbar-thumb { background: var(--accent-bg); border-radius: 4px; }
.tweaks-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tweaks-title { font-family: var(--font-display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); }
.tweaks-close { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--border); background: transparent; color: var(--text3); cursor: pointer; display: grid; place-items: center; transition: var(--tr); }
.tweaks-close:hover { color: var(--text); border-color: var(--text3); }
.tweaks-close svg { width: 13px; height: 13px; }
.tweak-group { margin-bottom: 14px; }
.tweak-label { font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 7px; }
.tweak-label .sub { font-weight: 600; color: var(--text3); margin-left: 5px; opacity: 0.7; }
.tweak-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tweak-opt { padding: 6px 11px; border-radius: 7px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--text2); cursor: pointer; transition: var(--tr); text-align: center; white-space: nowrap; }
.tweak-opt:hover { border-color: var(--accent); color: var(--accent); }
.tweak-opt.active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.tweak-info { font-family: var(--font-mono); font-size: 9px; color: var(--text3); margin-top: 8px; line-height: 1.5; }
.tweak-swatches { display: flex; gap: 9px; }
.tweak-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: var(--tr); flex-shrink: 0; padding: 0; }
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.active { border-color: var(--text); transform: scale(1.15); }
.tweak-partition { height: 1px; background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent); margin: 16px -2px; }

/* ── DEVICE VIEW (preview-as frame) ── */
body[data-device="desktop"] { --frame-w: 100%; }
body[data-device="laptop"]  { --frame-w: 1180px; }
body[data-device="tablet"]  { --frame-w: 800px; }
body[data-device="mobile"]  { --frame-w: 420px; }
body[data-device] .topbar,
body[data-device] .footer,
body[data-device] .stage-inner {
  margin-left: auto; margin-right: auto;
  transition: max-width 0.35s cubic-bezier(0.4,0,0.2,1);
}
body[data-device="laptop"] .topbar,
body[data-device="laptop"] .footer,
body[data-device="laptop"] .stage-inner { max-width: 1180px; }
body[data-device="tablet"] .topbar,
body[data-device="tablet"] .footer,
body[data-device="tablet"] .stage-inner { max-width: 800px; }
body[data-device="mobile"] .topbar,
body[data-device="mobile"] .footer,
body[data-device="mobile"] .stage-inner { max-width: 420px; }
.device-frame {
  display: none; position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: var(--frame-w, 100%); z-index: 4; pointer-events: none;
  border-radius: 0;
  /* the big spread dims everything OUTSIDE the device column (spotlight) */
  box-shadow:
    0 0 0 100vmax rgba(2,4,8,0.66),
    0 0 0 1.5px color-mix(in srgb, var(--accent) 42%, transparent),
    0 0 60px color-mix(in srgb, var(--accent) 20%, transparent);
}
[data-theme="light"] .device-frame {
  box-shadow:
    0 0 0 100vmax rgba(10,22,40,0.34),
    0 0 0 1.5px color-mix(in srgb, var(--accent) 42%, transparent),
    0 0 60px color-mix(in srgb, var(--accent) 16%, transparent);
}
body[data-device="laptop"] .device-frame,
body[data-device="tablet"] .device-frame,
body[data-device="mobile"] .device-frame { display: block; }
/* device-appropriate screen corners */
body[data-device="laptop"] .device-frame { border-radius: 10px; }
body[data-device="tablet"] .device-frame { border-radius: 26px; }
body[data-device="mobile"] .device-frame { border-radius: 38px; }
/* mobile notch (top) + home indicator (bottom) */
.device-frame::before, .device-frame::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity .3s; }
.device-frame::before {
  top: 0; width: 150px; height: 26px; background: #05080d;
  border-radius: 0 0 16px 16px;
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--accent) 30%, transparent);
}
.device-frame::after {
  bottom: 9px; width: 120px; height: 5px; border-radius: 100px;
  background: color-mix(in srgb, var(--text) 55%, transparent);
}
body[data-device="mobile"] .device-frame::before,
body[data-device="mobile"] .device-frame::after { opacity: 1; }
/* floating device label pill */
.device-tag {
  display: none; position: fixed; top: 13px; right: 16px; z-index: 6; pointer-events: none;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent);
  padding: 5px 12px; border-radius: 100px;
  background: var(--bg2); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
body[data-device="laptop"] .device-tag,
body[data-device="tablet"] .device-tag,
body[data-device="mobile"] .device-tag { display: block; }
/* believable scaling inside the framed previews */
body[data-device="tablet"] .headline { font-size: 50px; }
body[data-device="mobile"] .hero-logo { width: 150px; margin-bottom: -20px; }
body[data-device="mobile"] .headline { font-size: 34px; }
body[data-device="mobile"] .lede { font-size: 14.5px; max-width: 100%; }
body[data-device="mobile"] .nav-live { display: none; }
body[data-device="mobile"] .notify-row { flex-direction: column; padding: 12px; gap: 12px; }
body[data-device="mobile"] .notify-row input { text-align: center; }
body[data-device="mobile"] .btn { width: 100%; justify-content: center; }
body[data-device="mobile"] .footer { flex-direction: column; text-align: center; }
